	
/****** Object:  Stored Procedure CatalogsInsert    Script Date: Tuesday, September 18, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spCatalogsInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spCatalogsInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: spCatalogsInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 9/18/2007 11:51:44 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spCatalogsInsert
	@CatalogName nvarchar(50),
	@CatalogOrder int,
	@CatalogID int output
AS

INSERT INTO [Catalogs] 
(
	[CatalogName],
	[CatalogOrder]
) 
VALUES 
(
	@CatalogName,
	@CatalogOrder
)

SELECT @CatalogID = @@IDENTITY

GO
	
